package com.work.util;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.ui.Model;

import com.work.domain.UserAdmin;

/**
 * 
 * @author: zhubingyi
 * @version: 1.1
 * @description:  获取登陆用户session
 *
 */
public class GetUserSessionTool{

	//获取管理员登陆用户session
	public static UserAdmin getUserSession(HttpServletRequest request){
		
		UserAdmin ua  = (UserAdmin) request.getSession().getAttribute("adminuser");
		
		return ua;
	}
	

}
